import Vue from 'vue'
import { createApp } from 'vue'
const app = Vue.createApp({})

app.directive('has', {
  beforeMount(el, binding, vnode){
    // binding.value 自定义的值
    el.style.background = binding.value
  }
})